set(src_dirs
            OTA
            Feed
            MQTT
            Network
            BLE
            WIFI)

set(include_dirs
            OTA
            Feed
            MQTT
            Network
            BLE
            WIFI)

set(requires
            driver
            nvs_flash
            bt
            mqtt
            json
            mbedtls
            app_update
            User
            System
            BSP)

idf_component_register(SRC_DIRS ${src_dirs}
                       INCLUDE_DIRS ${include_dirs}
                       PRIV_REQUIRES cmock esp_timer spi_flash esp_psram
                       REQUIRES ${requires})

component_compile_options(-ffast-math -O3 -Wno-error=format=-Wno-format)
